{% extends "att_exception_page.html" %}
{% load i18n %}
{% block addjs %}
function is_row_operations_show(rowdata){
	return rowdata[8]!='审核通过'
}
function is_row_href_show(){
	return true;
}
{% endblock %}
{% block id_main_div %}
    {% if request.user|HasPerm:"contenttypes.can_AttExceptionPage" %}
        {% if request.user|HasPerm:"contenttypes.can_CheckExactPage" %}
            <div>
                <li id="id_model_export" style="display:none">
                    <a class="action_Model_Export" href="javascript:void(0)" alt="export"></a>
                </li>
            </div>
            <div style="display:none">
                <li>
                    <div id="id_log_url">
                        <a id="id_log_dialog" href="javascript:void(0);" ref="/{{request.surl}}worktable/get_search_form/base/LogEntry/" query="{{ log_search }}" class=""><span class="action_log"></span>{% trans "日志记录" %}</a>
                     </div>
                </li>
            </div>
            <div id="id_datalist" class="div_box h280"><h1>{% trans "补签卡" %}</h1>
            </div>
        {% endif %}
    {% endif %}
{% endblock %}
{% block acc_reportform %}
    $("#id_datalist").model_grid({
        "model_url": "{{ dbapp_url }}att/CheckExact/",
        "model_actions": true,
         "object_actions": true,
         "record_per_page": 15,
         "max_no_page": 20,
         "disabled_actions": ["_change"],
         "multiple_select": true,
         "action_onclick_continue": false,
         "row_operations":true,

        "init_after_get_jdata": function(){
            $("#id_datalist div.action").append('<li id="id_log"><a alt="log" href="javascript:void(0)" class="action_Model_log">'+gettext("日志记录")+'</a></li>')
            $("#id_log").click(function(){
               $("#id_log_dialog").click();
           });
        }

    });
{% endblock %}